﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FluentTests.Framework.Verbs
{
    public class Has<T> : Verb<T>
    {
        public Has(EnsuredWrapper<T> ensuredWrapperObject) : base(ensuredWrapperObject)
        {
        }

        public Has<T> Not
        {
            get
            {
                this.Negated = !this.Negated;
                return this;
            }
        }
    }

    public class GenericHas<T,TElement> : Has<T> where T : IEnumerable<TElement>
    {
        public GenericHas(CollectionEnsuredWrapper<T,TElement> ensuredWrapperObject) : base(ensuredWrapperObject)
        {
        }

        public new GenericHas<T,TElement> Not
        {
            get
            {
                this.Negated = !this.Negated;
                return this;
            }
        }
    }
}
